-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coprocessor: Exceed action for copiterator (#17324) #18392
coprocessor: Exceed action for copiterator (#17324) #18392
Conversation
Signed-off-by: ti-srebot <[email protected]>
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@wshwsh12,Thanks for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
/run-unit-test |
/run-all-tests |
1 similar comment
/run-all-tests |
/run-all-tests |
/run-unit-test |
…#18704) This reverts commit fe54331. Co-authored-by: ti-srebot <[email protected]> Co-authored-by: jebter <[email protected]>
cherry-pick #17324 to release-4.0
What problem does this PR solve?
Close #16104
Add a new ExceedAction for TableReader Executor. This action would end the copItWorker when the session's memory tracker meet exceed situation.
To see how endCopWorker work, I prepare a table with some data.
First I set mem_quota as a big number to know the whole memory consume to read this table. The result is about 177MB.
Second, I set mem_quota as 150MB and rerun
select * from t
. The result returned successfully and from log we can see the TableReader Executor have meet memory exceed some times and each time a copIteratorWorker end its life.finally, i set memory_quota as 65MB and meet panic action.
What is changed and how it works?
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note